home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_4602 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  1.1 KB  |  46 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       if(_root.ii4 < 4)
  5.       {
  6.          if(_root.draglej == 51)
  7.          {
  8.             _root.z_17_2.start();
  9.             _root.winokno._visible = true;
  10.             _root.hideall();
  11.          }
  12.          else if(0 < _root.draglej)
  13.          {
  14.             if(eval("_root.mon_039_i" add _root.draglej add "_100") == undefined)
  15.             {
  16.                _root.d_venca.l = "mon_039_iundef_100";
  17.                _root.d_venca.i = "go";
  18.             }
  19.             else
  20.             {
  21.                _root.d_venca.l = "mon_039_i" add _root.draglej add "_100";
  22.                _root.d_venca.i = "go";
  23.             }
  24.          }
  25.          else
  26.          {
  27.             _root.d_venca.l = "mon_039_hladit_100";
  28.             _root.d_venca.i = "go";
  29.          }
  30.       }
  31.       else
  32.       {
  33.          _root.d_venca.l = "mon_039_spi_100";
  34.          _root.d_venca.i = "go";
  35.       }
  36.       _root.stopdragall();
  37.       _root.items_hide();
  38.       _root.hideall();
  39.    }
  40.    else
  41.    {
  42.       _root.venca.gotoAndPlay(_root.poz add "b");
  43.       _root.stopdragall();
  44.    }
  45. }
  46.